import Layout from '../views/layout/Layout'

export const customRouter = [
  {
    path: 'student',
    component: Layout,
    hidden: true,
    children: [{
      path: '/education/student/:id',
      component: () => import('@/views/education/student/detail'),
      name: '学员详情',
      meta: { title: '学员详情', icon: 'user' }
    }]
  },
  {
    path: 'schedule',
    component: Layout,
    hidden: true,
    children: [{
      path: '/education/schedule/teacher/:id',
      name: '老师课表',
      component: () => import('@/views/education/schedule/detail'),
      meta: { title: '老师课表', icon: 'user' }
    }]
  },
  {
    path: 'class',
    component: Layout,
    hidden: true,
    children: [{
      path: '/education/class/:id',
      name: '班级管理 / 班级详情',
      component: () => import('@/views/education/class/detail'),
      meta: { title: '班级详情' }
    }]
  },
  {
    path: 'customer',
    component: Layout,
    hidden: true,
    children: [{
      path: '/customer/detail/:id/:type',
      name: '客户管理 / 客户详情',
      component: () => import('@/views/customer/module/detail'),
      meta: { title: '客户详情' }
    }]
  },
  {
    path: 'sign',
    component: Layout,
    hidden: true,
    children: [{
      path: '/customer/sign',
      name: '客户报名',
      component: () => import('@/views/customer/sign/index'),
      meta: { title: '客户报名' }
    }]
  },
  {
    path: 'finance',
    component: Layout,
    hidden: true,
    children: [{
      path: '/finance/order/detail/:orderSn',
      name: '财务管理 / 订单详情',
      component: () => import('@/views/finance/order/Order'),
      meta: { title: '订单详情' }
    }]
  },
  {
    path: 'course',
    component: Layout,
    hidden: true,
    children: [{
      path: '/operate/course/:courseId',
      name: '课程设置 / 课程详情',
      component: () => import('@/views/operate/course/detail'),
      meta: { title: '课程详情' }
    }]
  }
]
